package behavioral.memento;

/**
 * @Description: 备忘录类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class Memento {

    private String body;

    private String title;

    public Memento(Document document) {
        this.title = document.getTitile();
        this.body = document.getBody();
    }

    public String getBody() {
        return body;
    }

    public String getTitle() {
        return title;
    }
}
